package com.winit.demo.web;

import com.winit.common.base.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Api(value = "demo", tags = {"demo"}, description = "demo")
@RestController
@RequestMapping("/api/v1/demo")
public class DemoController extends BaseController{

    private static Logger log = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping(value = "/demo", method = RequestMethod.GET)
    @ResponseStatus(HttpStatus.OK)
    @ApiOperation(value = "demo")
    @ResponseBody
    public Map getFlowFrameTree(@ApiParam(value = "demo") @RequestParam(value = "demo", required = false) String demo) {
        return this.getRtn(BaseController.REQUEST_SUCCESS, BaseController.REQUEST_SUCCESS_MSG, demo);
    }
}
